import service from '@/utils/request'

// @Tags BusNovelsList
// @Summary 创建BusNovelsList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BusNovelsList true "创建BusNovelsList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /busNovelsList/createBusNovelsList [post]
export const createBusNovelsList = (data) => {
  return service({
    url: '/busNovelsList/createBusNovelsList',
    method: 'post',
    data
  })
}

// @Tags BusNovelsList
// @Summary 删除BusNovelsList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BusNovelsList true "删除BusNovelsList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /busNovelsList/deleteBusNovelsList [delete]
export const deleteBusNovelsList = (data) => {
  return service({
    url: '/busNovelsList/deleteBusNovelsList',
    method: 'delete',
    data
  })
}

// @Tags BusNovelsList
// @Summary 删除BusNovelsList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除BusNovelsList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /busNovelsList/deleteBusNovelsList [delete]
export const deleteBusNovelsListByIds = (data) => {
  return service({
    url: '/busNovelsList/deleteBusNovelsListByIds',
    method: 'delete',
    data
  })
}

// @Tags BusNovelsList
// @Summary 更新BusNovelsList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BusNovelsList true "更新BusNovelsList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /busNovelsList/updateBusNovelsList [put]
export const updateBusNovelsList = (data) => {
  return service({
    url: '/busNovelsList/updateBusNovelsList',
    method: 'put',
    data
  })
}

// @Tags BusNovelsList
// @Summary 用id查询BusNovelsList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.BusNovelsList true "用id查询BusNovelsList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /busNovelsList/findBusNovelsList [get]
export const findBusNovelsList = (params) => {
  return service({
    url: '/busNovelsList/findBusNovelsList',
    method: 'get',
    params
  })
}

// @Tags BusNovelsList
// @Summary 分页获取BusNovelsList列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取BusNovelsList列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /busNovelsList/getBusNovelsListList [get]
export const getBusNovelsListList = (params) => {
  return service({
    url: '/busNovelsList/getBusNovelsListList',
    method: 'get',
    params
  })
}
